package org.zffc.common.expection;

import org.zffc.common.constant.CommonConstant;

public class ZffcBootException extends RuntimeException{
    private static final long serialVersionUID = 1L;

    /**
     * 返回给前端的错误code
     */
    private int errCode = CommonConstant.SC_INTERNAL_SERVER_ERROR_500;

    public ZffcBootException(String message){
        super(message);
    }

    public ZffcBootException(String message, int errCode){
        super(message);
        this.errCode = errCode;
    }

    public int getErrCode() {
        return errCode;
    }

    public ZffcBootException(Throwable cause)
    {
        super(cause);
    }

    public ZffcBootException(String message,Throwable cause)
    {
        super(message,cause);
    }
}
